package com.ctrip.framework.apollo.demo.spring.springBootDemo.controller;

import com.ctrip.framework.apollo.demo.spring.springBootDemo.config.SampleRedisConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xi on 2018/2/25.
 */
@RestController
@RequestMapping("/application")
public class TestApplicationController {
    @Autowired
    private SampleRedisConfig sampleRedisConfig;

    @RequestMapping("/test1")
    public Object testSpringUtil1() {
        return sampleRedisConfig.getExpireSeconds();
    }

}